package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.TravelContent;
import cn.wolfcode.trip.base.mapper.TravelContentMapper;
import cn.wolfcode.trip.base.service.ITravelContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *@Discription 创建文章点赞数的service方法

 *@Params

 *@Return

 *@Authod  黄照伟

 *@CreationTime  2019/3/10 10:28

 *@change

 */
@Service
public class TravelContentServiceImpl  implements ITravelContentService {
    @Autowired
    private TravelContentMapper travelContentMapper;

    @Override
    public void updata(TravelContent travelContent) {
        travelContentMapper.updateByPrimaryKey(travelContent);
    }

    @Override
    public TravelContent selectByNiceId(Long id) {
        return travelContentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TravelContent> listAll() {
        return travelContentMapper.selectAll();
    }
}
